/**
 * jims
 */
package com.jims.master.modules.base.inquiry.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 问诊回复Entity
 * @author chent
 * @version 2017-05-12
 */
public class InquiryReply extends DataEntity<InquiryReply> {
	
	private static final long serialVersionUID = 1L;
	private String askId;		// 问诊表主键
	private String doctorId;		// 回复医生id
	private String content;		// 回复内容
	private Date replyTime;		// 回复时间
	private String replyType;		// 类型：0:问诊人、1:接诊人
	private String stat;		// 0未读 1已读
	
	public InquiryReply() {
		super();
	}

	public InquiryReply(String id){
		super(id);
	}

	@Length(min=1, max=64, message="问诊表主键长度必须介于 1 和 64 之间")
	public String getAskId() {
		return askId;
	}

	public void setAskId(String askId) {
		this.askId = askId;
	}
	
	@Length(min=0, max=64, message="回复医生id长度必须介于 0 和 64 之间")
	public String getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(String doctorId) {
		this.doctorId = doctorId;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getReplyTime() {
		return replyTime;
	}

	public void setReplyTime(Date replyTime) {
		this.replyTime = replyTime;
	}
	
	@Length(min=1, max=1, message="类型：0:问诊人、1:接诊人长度必须介于 1 和 1 之间")
	public String getReplyType() {
		return replyType;
	}

	public void setReplyType(String replyType) {
		this.replyType = replyType;
	}
	
	@Length(min=1, max=1, message="0未读 1已读长度必须介于 1 和 1 之间")
	public String getStat() {
		return stat;
	}

	public void setStat(String stat) {
		this.stat = stat;
	}
	
}